package wishes;

import model.Model;
import enums.WishType;
import interfaces.AbstractWish;

public class WishToWashClothes extends AbstractWish {

	public WishToWashClothes(long startTime) {
		super(startTime);
	}

	@Override
	public boolean canBeFulfilled() {
		return true;
	}

	@Override
	public boolean fulfill() {
		Model.getInstance().washClothes();
		Model.getInstance().getWishes().remove(this);
		return true;
	}

	@Override
	public long getDeadLine() {
		return startTime + Model.ZEIT_STUNDE * 3;
	}

	@Override
	public WishType getType() {
		return WishType.WishToWashClothes;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();	
		builder.append("bis ").append(Model.millisToString(getDeadLine()));//.append(" Uhr");
		builder.append(" >> Will Kleidung waschen");
		return builder.toString();
	}
}
